import request from '@/utils/requestMd5'

//获取菜单列表
export function menuList(params) {
  return request({
    url: '/global/menuList',
    method: 'get',
    params
  })
}

//菜单详情 
export function getMenuDetail(params) {
    return request({
      url: '/global/getMenuDetail',
      method: 'get',
      params
    })
  }
  
//获取上级菜单列表
export function menuListByPid(params) {
return request({
    url: '/global/menuListByPid',
    method: 'get',
    params
})
}

//新增菜单
export function addMenu(data) {
return request({
    url: '/global/addMenu',
    method: 'post',
    data
})
}

//修改菜单
export function editMenu(data) {
  return request({
      url: '/global/editMenu',
      method: 'post',
      data
  })
}

//删除菜单
export function deleteMenu(params) {
  return request({
      url: '/global/deleteMenu',
      method: 'get',
      params
  })
}

